* Sebastian Jilke, Nicolai Petrovsky, Bart Meuleman, and 
* Oliver James

* Public Management Review article: 
* "Measurement equivalence in replications of experiments: 
* when and why it matters and guidance on how to 
* determine equivalence"

* Code to reproduce Tables 2 and 4



* Stata version 13.1
* Code last reviewed July 26, 2016

* Data set required: 
* JilkePetrovskyMeulemanJames2016PMR.dta

* Please copy this do-file and the data sets into a
* directory on your hard drive.
* Then, please use Stata's command
* cd
* to change to that directory.
* Now you can run this do-file.

clear
clear matrix
version 13.1
set more off
set scheme s1mono

* Open a log and allow for replacement
log using JilkePetrovskyMeulemanJames2016PMR, replace

* Open the data
use JilkePetrovskyMeulemanJames2016PMR
save workfile, replace



* Table 2

* Summarize blame sum score for the UK: 
sum blame if NLdata == 0

* Summarize blame sum score for the Netherlands: 
sum blame if NLdata == 1

* Summarize blame items for the UK: 
sum Q13_1 Q13_2 Q13_3 Q13_4 Q14_1 if NLdata == 0

* Summarize blame items for the Netherlands: 
sum Q13_1 Q13_2 Q13_3 Q13_4 Q14_1 if NLdata == 1



* Table 4, Model (1)
regress blame polsdaytoday delegatedunit /*
*/ delegatedprivatecontractor if NLdata == 0

* Table 4, Model (2)
regress blame noinformation delegatedunit /*
*/ delegatedprivatecontractor if NLdata == 0

* Table 4, Model (3)
regress blame polsdaytoday delegatedunit /*
*/ delegatedprivatecontractor if NLdata == 1

* Table 4, Model (4)
regress blame noinformation delegatedunit /*
*/ delegatedprivatecontractor if NLdata == 1



save, replace
clear
log close
exit

